package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.TbeduInterviewMapper;
import com.ruoyi.manager.domain.TbeduInterview;
import com.ruoyi.manager.service.ITbeduInterviewService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生采访Service业务层处理
 * 
 * @author 罗
 * @date 2021-09-17
 */
@Service
public class TbeduInterviewServiceImpl implements ITbeduInterviewService 
{
    @Autowired
    private TbeduInterviewMapper tbeduInterviewMapper;

    /**
     * 查询学生采访
     * 
     * @param fId 学生采访主键
     * @return 学生采访
     */
    @Override
    public TbeduInterview selectTbeduInterviewByFId(Long fId)
    {
        return tbeduInterviewMapper.selectTbeduInterviewByFId(fId);
    }

    /**
     * 查询学生采访列表
     * 
     * @param tbeduInterview 学生采访
     * @return 学生采访
     */
    @Override
    public List<TbeduInterview> selectTbeduInterviewList(TbeduInterview tbeduInterview)
    {
        return tbeduInterviewMapper.selectTbeduInterviewList(tbeduInterview);
    }

    /**
     * 新增学生采访
     * 
     * @param tbeduInterview 学生采访
     * @return 结果
     */
    @Override
    public int insertTbeduInterview(TbeduInterview tbeduInterview)
    {
        return tbeduInterviewMapper.insertTbeduInterview(tbeduInterview);
    }

    /**
     * 修改学生采访
     * 
     * @param tbeduInterview 学生采访
     * @return 结果
     */
    @Override
    public int updateTbeduInterview(TbeduInterview tbeduInterview)
    {
        return tbeduInterviewMapper.updateTbeduInterview(tbeduInterview);
    }

    /**
     * 批量删除学生采访
     * 
     * @param fIds 需要删除的学生采访主键
     * @return 结果
     */
    @Override
    public int deleteTbeduInterviewByFIds(String fIds)
    {
        return tbeduInterviewMapper.deleteTbeduInterviewByFIds(Convert.toStrArray(fIds));
    }

    /**
     * 删除学生采访信息
     * 
     * @param fId 学生采访主键
     * @return 结果
     */
    @Override
    public int deleteTbeduInterviewByFId(Long fId)
    {
        return tbeduInterviewMapper.deleteTbeduInterviewByFId(fId);
    }
}
